<template>
  <v-app>
    <router-view></router-view>
  </v-app>
</template>

<script lang="ts">
import Vue from "vue";
import Component from "vue-class-component";
import { mapState, mapMutations } from "vuex";

@Component({
  created() {
    this.getuserinfo();
  },
})
export default class App extends Vue {
  //computed 属性
  get pageRender() {
    return this.$store.state.login.pageRender;
  }
  get userinfo() {
    return this.$store.state.login.userinfo;
  }
  getuserinfo() {
    this.$store.commit("login/getuserinfo");
  }
}
</script>
<style>
</style>
